import { BaseHintIcon } from "../../common/hintIcon/BaseHintIcon";
import { ImagesConst } from "../../../resource/ImagesConst";
import { ECopyType } from "../../../../../Message/Public/ECopyType";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { DataEvent } from "../../../events/DataEvent";
import { EventName } from "../../../mvc/EventName";
type int = number;
//class GuildRobCityCopyIcon
    
    export  class GuildRobCityCopyIcon extends BaseHintIcon
    {
        constructor()
        {
            super(ImagesConst.copyHintIcon);
            this.addEventListener(flash.events.MouseEvent.CLICK, this.onHintIconClick);
            return;
        }

        /* internal  */onHintIconClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=this.copyType;
            switch (loc1) 
            {
                case ECopyType._ECopyRobCityOne:
                {
                    Dispatcher.dispatchEvent(new DataEvent(EventName.GuildOpenCopyWindow, ECopyType._ECopyRobCityOne));
                    break;
                }
                case ECopyType._ECopyRobCityTwo:
                {
                    break;
                }
                case ECopyType._ECopyRobCityThree:
                {
                    break;
                }
            }
            return;
        }

        public /* var */copyType: int;
    }
